Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var e = require("../../@babel/runtime/helpers/objectSpread2"), r = {
    selector: "#canvas-drag"
};

function o() {
    var o = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
    o = e(e({}, r), o);
    var n = getCurrentPages(), t = n[n.length - 1], a = t.selectComponent(o.selector);
    return delete o.selector, a;
}

o.export = function() {
    if (o()) return o().export();
    console.error('请设置组件的id="canvas-drag"!!!');
}, o.changFontColor = function(e) {
    if (o()) return o().changColor(e);
    console.error('请设置组件的id="canvas-drag"!!!');
}, o.changeBgColor = function(e) {
    if (o()) return o().changeBgColor(e);
    console.error('请设置组件的id="canvas-drag"!!!');
}, o.changeBgImage = function(e) {
    if (o()) return o().changeBgImage(e);
    console.error('请设置组件的id="canvas-drag"!!!');
};

var n = o;

exports.default = n;